AUTOMAKE_OPTIONS =	foreign
 
BUILT_SOURCES=	ntp-keys.texi ntp-keys-man.5.ps ntp-keys-mdoc.5.ps ntp-keys.html
man_MANS=	ntp-keys.man ntp-keys.mdoc  
run_ag=		cd $(srcdir) && autogen -L $(srcdir) --writable


$(srcdir)/ntp-keys.man: $(srcdir)/ntp-keys.def $(srcdir)/agman5.tpl 
	$(run_ag) -Tagman5.tpl -Lscripts -bntp-keys-man ntp-keys.def

$(srcdir)/ntp-keys.mdoc: $(srcdir)/ntp-keys.def $(srcdir)/agmdoc5.tpl
	$(run_ag) -Tagmdoc5.tpl -Lscripts -bntp-keys-mdoc ntp-keys.def

$(srcdir)/ntp-keys.texi: $(srcdir)/ntp-keys.def $(srcdir)/aginfo.tpl
	$(run_ag) -Taginfo.tpl -DLEVEL=unnumberedsec ntp-keys.def

$(srcdir)/ntp-keys.html: $(srcdir)/ntp-keys.texi
	cd $(srcdir) && makeinfo --force --html --no-split -o ntp-keys.html ntp-keys.texi

$(srcdir)/ntp-keys-man.5.ps: $(srcdir)/ntp-keys.man
	cd $(srcdir) && groff -man ntp-keys-man.5 > ntp-keys-man.5.ps

$(srcdir)/ntp-keys-mdoc.5.ps: $(srcdir)/ntp-keys.mdoc
	cd $(srcdir) && groff -man ntp-keys-mdoc.5 > ntp-keys-mdoc.5.ps


